Really trime all leading and trailing white space from notes.

Forgot to change this back when testing the regression test; should have been
pushed in 8f78cb4b014.
Teach `config` to notice an uninitialized database.

Resolves #109.