Let me perhaps rephrase my question, what is /nix/var/nix/db/db.sqlite for?
I tracks valid paths (ie. what’s installed) among other things. If you start with an empty database nix will remove everything that’s not registered when you start a garbage collect. This is because nix can’t validate the content or track any of it’s dependencies without it.