add judge when drop database