Add index on foreign keys