add foreign key sync