add dbtools and fix testpass sql issue