connect to mongodb for the duration of the app listen