add final grade to db, fixed gui