Fixes on match table logic
Adds rake task to update match model logic