class _SQLAlchemy(SQLAlchemy):

    def apply_driver_hacks(self, app, info, options):
        """This method adds option to support hstore on psycopg2"""
How to use Postgres' Hstore column with flask-sqlalchemy?