def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def pre_drop(self):
        """
        This is a routine which you could override to backup the tenant schema before dropping.
        :return:
        """