Improve exception handling

Adds a generic error handler for unsupported databases, and makes the error messages for ipv4 and ipv6 exceptions more verbose and less stilted. Response to #68.