base rest and mongo setup