Was trying to load ontologies before db create
Merge pull request #375 from adamrp/fix_ontology_and_reference_loading

Was trying to load ontologies before db create