adding book_id table and code to manipulate it correctly