--- /dev/null
+#!/bin/sh
+#
+#  Drop Bacula database -- works for whatever is configured,
+#    MySQL, SQLite, PostgreSQL
+#
+if test xsqlite = x@DB_NAME@ ; then
+  @scriptdir@/drop_sqlite_database
+  echo "Dropped SQLite database"
+else
+  if test xmysql = x@DB_NAME@ ; then 
+    echo "Making MySQL database"
+    @scriptdir@/drop_mysql_database $*
+    echo "Dropped MySQL database"
+  else
+    # hardcoded database name - should be a parameter
+    @scriptdir@/drop_postgresql_database bacula
+    echo "Dropped PostgreSQL database"
+  fi
+fi
 
--- /dev/null
+#!/bin/sh
+#
+# shell script to drop Bacula database(s)
+#
+
+bindir=@SQL_BINDIR@
+
+if $bindir/mysql $* -f <<END-OF-DATA
+DROP DATABASE bacula;
+END-OF-DATA
+then
+   echo "Drop of bacula database succeeded."
+else
+   echo "Drop of bacula database failed."
+fi
+exit 0
 
--- /dev/null
+#!/bin/sh
+#
+# shell script to drop Bacula database(s)
+#
+
+bindir=@SQL_BINDIR@
+
+if $bindir/psql $* -f - <<END-OF-DATA
+DROP DATABASE bacula;
+END-OF-DATA
+then
+   echo "Drop of bacula database succeeded."
+else
+   echo "Drop of bacula database failed."
+fi
+exit 0
 
--- /dev/null
+#!/bin/sh
+#
+# shell script to drop Bacula SQLite tables
+
+bindir=@SQL_BINDIR@
+cd @working_dir@
+
+# how do we drop an sqlite database?
+#$bindir/sqlite $* bacula.db <<END-OF-DATA
+#END-OF-DATA
+exit 0