Save the match result before trying to use its auto_inc id.