saving grades for sudent in db