Support the compatibility between Flask-SQLAlchemy and Flask-SQLAlchemy-Lite.