Fixed bug that all books were being deleted when adding a new book.