add base model + flask peewee callback