Saving data to persistent store