Collection of functions 4 R and CouchDB interaction