fixes #522; more specific error thrown when no rows are updated

Fix for #522. Some of the design decisions were made in that thread.

This should make it easier to handle cases where updates are not required to be made on a save, and also to catch a specific error in the case that updates are expected.

I'm relatively new to node and JS so any feedback is greatly appreciated.