added clear db method