Creating a book database using C