Database destroy method added