Added logging to update of UserGrade and ActivityGrade tables.