Now successfully writes to the database toset the gradetype as 'none' (0) after the grade_category's duplicate line has been created in grade_items.