Feature/flask sqlalchemy

Converted project to use flask-sqlalchemy.