Updated `update` and `upsert` to return more info.

* `update` now returns the number of rows updated.

* `upsert` returns the ID on INSERT or a single row UPDATE, True on multiple updates and False otherwise (on error).