added little code to check couchbase connection status