store matches in a table