[Core] Primary key can be set manually if not autoincrement

Got an error while setting a PK manually and I had to do this. As a
non-autoincrement,, if must be set manually. So now we can set a key
value which is not automatic.