Fixes SQL injection vulnerability.