updating queries.