test mongodb connection