Fix bug where inherited fields were not displayed

Use DataObject->inheritedDatabaseFields() to generate the field list for
a DataObject
Wrote test to ensure this fix works as expected