Ensure required directories exist.
Changed name of database file.
Moved a log message so it gets seen at the right time.
Added swap files to ignore list.