Adding missing indexes on foreign keys and altering the default statistic