Data get's deleted when strapi container restarts

I had the same issue. Postgres db, no docker, database.js the same as mentioned above. Hosting at Render.
Strapi version v4.12.4
node version v18.13.0
All data disappeared without notification.