ADO reports / use proper sql escape function according to database vendor
- was always using mysql_real_escape_string function which made macros values empty with postgres
- current behaviour: if dsn uri starts with 'postgres' then use pg_escape_string function - use mysql_real_escape_string function otherwise