Commit after inserts is after 10000 inserts instead of each insert