Testing connections with mongodb