removed static stats added stats from db through session