connect to mongo before loading routes