move test database handler