Improve the mbz-restorecourses.php script

Precheck failures now handled via explicit rollback() call and precheck results
are displayed.