nested.php rebuild method changed to work with path field removed tables