fix parsing quotes at sql queries