routing and mongo connection