Security fix: A bunch of SQL Injection weaknesses