initialise queries