Corrected the check for postgres quoting