Check if the output is empty rather than asserting for equality

Also fix indent of test block.
Remove some indirection in rake dbs test

Just pass in the expected database as argument rather than "caching"
it in a hash and using the hash in the helper methods.