owl module has two views : OWLView (TBOX) and OWLABOXView (more or less ABOX. indeed, it layout ABOX information only for an specific entity and not all entities)
try:
# missing on some old databases
sql('CREATE INDEX entities_extid_idx ON entities(extid)')
except:
pass # already exists
checkpoint()
sql('CREATE INDEX entities_type_idx ON entities(type)')
checkpoint()