Incomplete: getResources.php - half way to retrieve assignations with every package containing resources