Moodle.2x mod/reader refine SQL statements used to find duplicates quiz during upgrade