fetching from couchdb