Added a getStructureForDomain that takes a ScopDatabase.