Check MongoDB server is ready.