add clear db interface; tested