Converted all of the models to SQLAlchemy