handle drop database and drop collection