Assert that database directory is a directory.

Statement coverage is at 94.37%.

Closes #73.