Update SQLite tests to create and dispose the test database correctly