Connection should be explicit with pg_last_error