consume by index
add db_name for debug
add dist test
add debug logs
use event emitter to control tx_status
order by id