Fixing force deletion of domain to correctly read apps from primary
Additional fixes to read from the primary