Database restore script

Added a SQL-encoded backup script to recreate the current database.