- Added unique constraint in match table.
- Matches are now added using insert ignore, to prevent errors.