Bug fix for ontology loading

Use of cur/conn needed fixing