add foreign keys for new schema attribute paths table