After Copying Iphoto Folder Back to New Os X Installation Folders Dissapear


Before doing a clean reinstall of mac os x i copied my home directory to a usb drive using psyncX. Now I have copied the iPhoto directory back to my mac os x drive using the finder.

All my photos now appear in iphoto but albums that were nested in iphoto folders are gone. However, if i try to create a new album with the same name as one of those that have dissapeared i get an error message saying that there already is an album by that name.

How do i get the albums that were in folders back=