added pubmed references
fixes to make loading robust to relational errors