Refactoring in UserDataStore, write to user.home