committing changes to save and update the profile object in database.