newdb: Fix book_id->row mapping broken when asearch is in effect