upd queries