new ValidateSQL and CheckSQL function
new checkSQL and validateSQL function