add mongodb setup in routes file