MDL-29108 Advanced grading - renaming DB field forminstanceid to instanceid