tried to implement direct couchdb support