Correctly apply AUTO_INCREMENT value to the ID field.