Use correct node attributes for db integration

Noticed that the wrong node attributes were being used to integrate datasources. Fixed it.