hack for test database support