convert some tests and propagate database.DB
Created by: camdencheek
This converts a bunch of tests to use the new mock stores and propagates database.DB through the codebase a bit more.
Created by: camdencheek
This converts a bunch of tests to use the new mock stores and propagates database.DB through the codebase a bit more.