def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def getter():
            with open(filepath, "r") as f:
                return f.read()