Added communicaton with CouchDb if app state is not available