It reads as if none of the articles about backup and restore of the iTunes library were followed so like taking your own adventurous path to parts unknown I don't see a clear fix other than to clean off iTunes altogether then reinstall iTunes and then restore from your last backup using Apple's documented procedure for restoring the iTunes library.
There are folk that never backup or blow up iTunes in new ways. Often they learn why we backup and follow the docs.
Bob
Whilst moving my itunes library folder on Windows 7 I deleted it and then emptied the recycle bin! - I know, not the done thing. A friend managed to find a back-up kept within my system at one of it's recent restore points and transferred the data to the new folder. The data was then transferred into itunes - all good up to this point and massive relieve by myself.
When I booted up itunes the albums seemed to be present but clicking into a lot of them I have found many with duplicate songs, tracks missing and an unknown folder full of rogue songs disassociated from their parent albums. In short I am relieved that the library is back but it is well and truly scrambled! Is there any way of rectifying this problem?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic