Apply FOREIGN KEY constraints for datafile