adding convenience functionality to basic query method

all occurances of "esc[string]" will be automatically escaped