add main for new hashdb tool