Fix display of OID for broken objects.
Create indexes in the reference database.