Abstract models and manager for querying hierarchical data for Harvest