edit queries