Analytics using Mongo & Mongoid