A couple of minor changes in PSQL queryies from Postgres 9.3.