picked: don't overwrite database file; write to temp file and replace atomically
picked: don't overwrite database file; write to temp file and replace atomically


git-svn-id: 010622e11a55a55e6019faa242fd6030b36eb2af@1292654 13f79535-47bb-0310-9956-ffa450edef68

stroucki/tashi,stroucki/tashi,stroucki/tashi