restructures my query methods for nba team