Creating promise handlers in controller to return team data.