databases deletion bug fixed