How to save/log information?

Is it possible to save / log information to a database, for long-term use? What is a good method of saving data for players/dinos through restarts/deaths?

I am looking to store tamed dino information such that it can be retrieved / viewed at any point. So: Owner, species, name, level, stats…

I see there are mods for things like pokeballs, breeding, stat manipulation, summoning, resurrection, etc., but I don’t see ones which are open source, so I can’t learn from them.

Still very new to this - thanks!