CORE-4211: added a specific query for listing data objects and refactored
the subcollection and data object listing functions to remove duplicate
code.