Insert book info into db and the SQL script.