Incomplete models and views

- switch to Flask-SQLAlchemy
- import templates from the old galkwi