add foreign key indexes
fix accounts spec