add condition for starting mongodb as done in template
cosmetic fixes