map from couchdb