more SQL queries for calculating grades for task and course