Add Flask-SQLAlchemy dependency
Change to application factory + blueprints pattern
Add blueprints for the methods from main.py