Made escapeColNames function unique for each database