get all teams retrieves only non empty teams