Created function for getting activity and reputes in main stat page