fixed issue where books were being queried even though they already had bookinfo