added mongo support for analytics