Updated scheduler to persist a list of teams to database