Fix missing database condition when updating a row with a non-integer primary key
Support the new autoIncrementKey model definition property