new util: inArray
executing queries on all the available data