code format adjust
require extension workaround
move the sql to seperated codefile
add sql logics
export the exec without promise
implement query of book