update tools/ssdb.sh