improving methods to prevent sql injecton threads