test database adapter