Fixed SQL security concern