Strapi deletes my collections and singles when restarting the server

That then looks correct, what is in your .env file ?