Added items iterator as well as query_to_list and query_to_dict helper functions