DNN-4538 Optimize table ContentItems
applied turbosql suggestions (after review by Charles)