Add indices for all foreign keys that were still missing

Closes #4