rating table cleanup