CHANGED:clean up the getAllFriends business code to userModel