Requires psycopg2