Actually initialise query array