Data not showing up in iCloud DB when testing app on iPhone

I've written a simple test app that asks for the user's name in a UITextfield and sends it into an iCloud DB I created. The app works successfully with the simulator( including sending data into my iCloud DB) but when I create an archive and export it to my iPhone for testing (using the Apple Configurator 2) the app runs but no data shows up in my iCloud database. I've also tried creating a profile for the app and installing it on my iPhone but that didn't solve the problem. The app shows in the Settings/iCloud list of "Apps using iCloud" on my phone too. What am I missing here to send data from my iPhone into the iCloud DB?
Data not showing up in iCloud DB when testing app on iPhone
 
 
Q