revert back to using a pivot table to the match teams, set home and away teams server side