db.build_metadata(): must cast idx for tokenmap to str.  Can't have int valued props.