added foreign key seriesid to class patch