implemented basic couchdb adapter using http client