replaced tuple with pattern match
create table if don't exist
Book id is auto increment
renamed BookDTO to Book