fixing all occurances of incorrect mquery calls