add foreign key indices to all tables