Fix rename importexport refactor

Fixing rename of nodes to goals
Renamed db attribute