Fix quotation escape in postgres where conditions

The postgres query generator needs to pass its dialect to Utils so that quotes can be escaped correctly.