Added mongodb check