Adds all_played_games to Team, Fixes database date comparison