Fixed machine importing issue. See description.

Load machines from CoreData after we create them all. This fixes a bug
where if no new machines were created it would return a empty set.