Fix autoIncrement when primary key is not a number

Example: using UUID for primary key