save profile API call in db