completed logic to get all existing FKs -> delete all the FKs (number of FKs left = 0) -> delete data -> add back all the FKs