Moving out the MongoStore implementation because of the dependency of mongodb module.