Your "Defense+" thingy did its job – it successfully defended your machine from the danger of doing something useful …
Seriously, SQLite has to create its temporary files somewhere, and the temporary directory is the directory that is designed to hold such files.
Your best way to solve this problem is to uninstall that Comodo thingy.
The second-best way would be to configure that so-called firewall to allow httpd.exe (and for that matter, all other programs) to access the temporary directory.
The least best way would be to configure the SQLite connection to try to store all temporary data in memory by executing PRAGMA temp_store = 2;
.
(This will undoubtedly blow up when your database becomes big enough so that the temporary data does not fit in memory.)