* Add logging
* Using tempfile causes problems with user ownership, instead of doing that, just get a temporary filename, which is all we need, and manually delete files using shred and fileutils
* Now that exposes a problem with trustdb (see db1 console)