Commit only after inserts