i went to add photos and my whole library was gone. How do i recover what was lost
You most likely have accidentally opened the wrong catalog file.
Use the menu command File->Open Recent and select each item shown in that list until you find the catalog that has your images imported into it.
Retrieving data ...