helpers to swap a database at runtime.  Closes GH-13
slightly better test cleanup