adding mongo usage and some templates