update processor foreign keys handling

fixes #17 

loadFromCursor isNull check prevents unnecessary query.