map couchdb data