fix foreign keys to have source and destination links