OTOH, my project is about real case of using single db with
connection via `mongodb-native` without any additional libs,
but with robust setup (reconnection, etc.) and simple interface:
In any general case access to the current db connection from
any node.js module is done via:
```
var db = require('./lib/mongodb.js').client
// but check manually if it is set up yet
```
In any application module(specific to that project), where `api` is passed,
db can be accessed like so [1]
```
function middleware(req, res, next){
var db, hst
db = api.db
hst = db.getCollection('hst')
return hst.find({}).toArray(function(err, arr){
if(err) return next(err)
if(!arr.length) return next('apperror_zero')
// now there is a valid array of data
return res.json(arr)
})
}
```