Update along with flipped arguments of runQuery.

Move param argument to last, convenient to map param list ...