Begin adding some -- clunky, but functional -- code for testing the Database class more thoroughly.

Note the one test failure is due to a bug in the Database class.
Merge pull request #51 from MrJoy/database_test_coverage

Test coverage for the Database class.