Rm meaningless SET pk = ? from update_pk/3
Add IN predicate.
Add NOT predicate.
Use precalculated next_ph_num.
Add insert_all/3 and prepare_insert_all/3 funs.