Love it!
quinedb can even store an 'extra' snapshot copy of quinedb, with "quinedb" as the key, inside quinedb:
quinedb set quinedb `cat quinedb` | sponge quinedb
sponge, which is part of the moreutils package, soaks up standard input and then writes it to a file.