Drop database function