update doQuery