updated the booking query