save the avatar to db when get it from server