Fix the db object usage, even though it's not used

Also, add some code in teardown just for fun to dump the contents
of the database, which is empty.