Extract Method raiseInvalidLetterGradeError

raiseInvalidLetterGradeError method is added which displays a proper
message and returns false, these lines are deleted from SaveClass
methods.
Extract Method insertIntoDB

insertIntoDB method is added which handles all the operation regarding
inserting and committing the values into DB.