fixed a bug, allowed the autoincrement field to be specified