Attempt 2 to make CodeClimate happy about SQL Injection