test database cleanup