Fixed mongodb to use non-deprecated method of determining if there's an active connection