Fixed issue #16 where all records (including unrelated) were being restored with a parent