Added the database existence recheck in the restore script that fixes the bug of inability to restore database with an old database drop turned on.