before matchup db insert