Add peewee as backend database.
Add flow model and initial test for REST api.