changed table name to "matchhistory"