method to disable database