Check whether mongodb is up or not