get user grades from the database implemented