Updates id handling in insert.