Support the compatibility between `flask_sqlalchemy` and `flask_sqlalchemy_lite`.