adding list_obj_names method to query class