Fixed params handling on get and post doQuery methods