Added indices to the foreign keys, per Casey's recommendation.