Added indices and foreign key relationships to schema.