add iSubSeqId calculation
format update
Merge pull request #1013 from ruil2/command_db

add iSubSeqId calculation