Refactor: Push this test db stuff under the covers in tmp