Changed client.update to resolve with the updated rows.
Fixed interface, implementaion and documentation of client.upsert.