replaced SqlAlchemy with Flask-SqlAlchemy