finish part of DBHelper and DBTools