Fixed TeamController function for retrieve by name (added function back)