Fixing database creation/restore script.