Fixing double quotes within SQL queries for Postgres.