querying and displaying book details