`connURL` is now a global variable. May I suggest the following change?

```javascript
var connURL = "mongodb://";
if (options.username && options.password)
    connURL += options.username + ":" + options.password + "@";
connURL += options.host + ":" + options.port + "/" + options.db;
```