Added UPDATE error check

Added a sanity check on `UPDATE` that the `rowsAffected` is 1. With the `UNIQUE` constraint, it shouldn't be possible for it to be greater than 1, but it will be 0 if a model already has an `id` but is not yet in the database.