Add the methods addHasTypeToSegment and fetchAllStorableUnit

Add the methods addHasTypeToSegment and fetchAllStorableUnit