Charting app using Rails and MongoDB