add foreign key support