Updated to use Flask-SQLAlchemy and Flask-Migrate