fixed db drop bug