Fixed a bug with the SQL querries when retrieving data for the current week when the regular season is over.
Added logic to activate and deactive leagues.