* Use batch insert on migrating repository to make the process faster * fix lint * fix tests * fix comments