fixed quoting issuses between postgres and mysql