Refactor tests to user BeforeAndAfterAll

This way cleanups run once per db, not per test
Move things around a bit

 - Split into 3 files
 - Organize imports
 - Define the TestDB right in the DbTest subclass