Updated the StatsScheduler to use a separate port for the stats database