MDL-46576 code_grade: a bandaid fix to avoid trying to update grades when we aren't viewing grades
fixed the local_gradebookcoredb install code
Merge branch 'natural_weights' of https://github.com/xow/moodle into natural_weights