Fixes PHP errors on grade book view and edit pages, adds missing active field to assessments table in upgrade SQL.