Switch to Flask-SQLAlchemy