database label indexed
factor out label index