A wrapper around Psycopg2