moves query into _dosomething_reportback_resource_index