retrieving books from db