You can restore a backup which iTunes creates automatically. Go to My Music > iTunes folder and rename the file iTunes Library.itl to something else like iTunes Library_bad.itl then go to My Music > iTunes > Previous iTunes libraries and select a recent backup. Rename the files to iTunes Library.itl and copy the file in My Music > iTunes folder. Restart iTunes and you should have a working database but with fewer items that you can add manually. It may not be complete, but at least it will work fine. You can delete the _bad.itl file you've just renamed.