update some queries