speed up mysql -> pg migration by using transcations

committing once every 10k rows is much faster than the autocommit after each row. Go figure :-)