testing connection to mongodb