Creating a database of books using C