Add indexes to foreign keys