refactored teams resource to use joins to get the player details