Testing mongodb connection