Hi,
This seems very odd, first open iPhoto and choose change library then navigate to iPhoto library.
If no success you can retrieve form your TM backups.
If you have not been doing regular backups then possibly a reinstall of OS X would be the way, as upgrading should not have done this.