cloudant code encapsulated in routes/cloudant.js