Creating a friendlist

Hi, I’m attempting to develop a feature for adding friends and managing a friend list. I’m having difficulty displaying my friend list and feeling a bit confused. Any assistance would be greatly appreciated.

If you are able to create your friend’s list then you can use a repeating group to display your friends list.

I have a repeating group and a data type set up as depicted in the screenshot. However, when person X adds person Y to their friends, it doesn’t get saved to the database for some reason.