A free app doesn’t have the limitation that data cannot be stored.
So running on a free app isn’t related to your issue.
Your question doesn’t provide a clear scenario when and how you try to store data.
Did you commit your data?
Are you aware that you local database is not the same database you have when you deploy to the cloud? Data that is stored locally won't appear in the app that is deployed in the cloud.