fixing psql query