implement escaping for $ symbol in queries

To insert $ sybol in query and aviod library to
interpret it as placeholder for variable use \$.
Usefull, for example when creating postgresql
procedure