pylib: fix minor issues in mappings

added some foreignkeys and reodered some columns
node.xml: add perl-Error to foundation-base (needed by git)