clear db bug