def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def initDriver(self):
        if self.driver is None:
            self.driver = self.getDriver()