Data manager for flask and peewee ORM