Database updated with total rating of class