added ability to save profile data into datastore