SQL security optimized.