destroy db
comment log
wrap flag maker
fixup! wrap flag maker
remove useless codes