If kore_pgsql_query() fails, relay this properly