modify db struct for bookid pageid PK