MOB-2406

* release the db connection so the service works after lots of health-checks in a row,
* JSLint&JSHint fixes.