def __init__(self, **attributes): self.__dict__ = attributes self.db = TinyDB(TINY_DB_PATH) self.table = self.db.table(self.__class__.__name__)