Add indexes to foreign keys

to make things a bit zippier.