utils.toError

- Adds `utils.toError` which assumes responsibility for converting arguments to instanceof Error. This functionality had nothing to do with the `Db` class (but still exists for backward compat).
- Add tests for converting arguments to Error.
- Now properly handles case where instanceof Error is passed.