Drop Flask-SQLAlchemy, use psycopg2 directly