added acomponent to get stats form the mongodb