Ignore compiled and swap files
Fix some SQL injection vulnerabilities