SQL adjustments.