Added destroy database function