def insert(self, doc, synced=False):
        doc.id = self.get_next_id()
        doc.synced = synced
        try:
            self.db.docs.insert(doc)
        except Exception as e:
            raise DatabaseException(e)
        return doc
def draw_path(self,c,container):
		c.path(self.center[0],self.center[1],container.center[0],container.center[1])