Like done except for inserting into rating table