I lost my albums and books
If you've deleted them, you'll need to have a backup to restore the file from. If it's a laptop, hopefully you had local snapshots enabled, in which case you can go to the folder that contained your iPhoto library, enter Time Machine and restore the file.