add foreign key account scoping