check insert success againt affected_rows instead of the last-insert-id. Closes #257

so it's not dependent on the type of PK the model uses