patching for reconnection to couchdb if failed the first time
patching for reconnection to dashboard if failed the first time