Fix missing insert from bad previous master merge. Add mongodb authentication feature.
Merge branch 'master' into downloadmetrics