add postgres dollar quoted strings to escape quotes