Check mongo connection status before all requests