Cleanup of CheckSQL because of the F rating in code climate

 - CVE checking is now a simple hash
 - Removed implicit returns
 - Removed duplicate code from find_scope_calls
 - Removed assignments from if statements
 - Bracketed ambiguos statements
 - Onelined simple if statements