update .sql for matches