added function to get books in category to dbLayer