started modifing database models to use flask-sqlalchemy instead of plain old sqlalchemy