Updates queries