SQL security changes