update quary