add function to save data into Datastore