Adding foreign keys and basic indices