def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def start_tls(self, read_server_info=True):
        self.start_tls_called = True