Changed databaseobjects.League namedtuple to more correctly map the results returned by the database; other code fixes are related