add single quotes around query