Revert tweak written for psycopg