fix migrate bsfilter funckeys

This commit fixes 2 scenarios:

- 1 secretary with 2 bosses: the secretary has 2 FK, one for each boss
- the table phonefunckeys contains entries for other types of FK (e.g. extenfeatures/automon)
Merge branch 'fk-migration-fails'