update document
bugfix for repair

db must use defer to close
use println instead of panic
use regexp to handle cli command