updated to flask-peewee based file structure