add option to return couchdb map value instead of whole document