Added some quick tests for the DB code.
Gave the test cases better names.