added new table to database that stored number of matching codes needed per table