Add logic to ensure that the sanitized default environment won't be the empty string
Add support for environments to the connection pool API