moved core data stack to UHDPersistentStack class