Assign CouchDB data to variables for use in visualizations