What is the use of snapshot.db?
At a high level, the file you listed is a binary database file used by the OS to track power usage, performance and sleep/wake data over time. Despite the general guidance to not delete anything from /var/db this appears to not cause undue harm if you were to delete that one file on occasion.

This feeds the new views of energy usage and perhaps might help with diagnostics if you have problems down the line and ask Apple to help diagnose the system.

The program that writes to that file (as well as associated files in /var/db/systemstats ) is systemstatsd.

You can use the systemstats --help command to get more details and read from that file if you are curious. The manual page I linked to is the shell of a manual page and the code is mostly undocumented by Apple other than the documentation that is build into the tool and accessible from calling it with the help option.

It's generally not safe to delete anything in /var/db since the system could depend on the files being coherent, but I've tested removing all contents of that directory by booting into Single User mode and the system seems to recreate things properly and handle any attempts to manually clean up these files.

I wouldn't recommend deleting anything from sytemstats on a Mac you are not ready to erase and reinstall and you also might get odd information from Activity Monitor if you manage to get the database and log files in an inconsistent state. That being said, it looks like the system was programmed defensively to handle things going missing from that directory and not cause erratic operation in general if you do so anyhow.