Workaround to allow clang compilation

gcc 4.7 compiles OK without these extra template specializations
so the fact that clang needs them might be a clang bug?
Only include escape() when used to avoid -Werror build fail with clang

modules/postgresql/Connection.cc:63:13: error: unused function 'escape' [-Werror,-Wunused-function]