PYTHON-807 Deprecate Database.error() and related methods.