added mysql escape chars preprocessing