Working on fixing a database error in my space exploration game.

I created a working database, that stores information about stars and planet that the player encounters. However, a certain bug keeps messing up the data and up until now every solution I've found seems to only delay the corruption, not fix it. I am actually afraid to play it because it's so disappointing when it finally screws up laugh

If the solution I recently implemented does not work, I will switch to a fixed database. This will be generated once at the beginning of the game, and allow the player to access the information, but will not be created as the player explores. I don't like this idea as much as a growing database, but it's better than a corrupt database...