queries update