The above diagram shows the sequence of adding a new book in the system. The librarian will enter the record of new book. The system will check in the database. If the record of book is already present, the book will not be added again. The already present record of the book will be updated, as the number of books of that name will be increased. If the book record is not present then the book record will be added in the database.