fix sql quoting issue with like statements