add a general worker for processing stats
Added connection/worker pools for stats processing