Add routes and add mongodb client.