add indexes to settings directional foreign keys