Debug mongoose queries

Option to debug mongoose queries on development environment
I think this could be more simply written as:
```
mongoose.set('debug', config.mongoose && config.mongoose.debug);
```