some PostgreSQL stuff then trying psycopg2