mail/dspam: fix with sqlite3 with DQS option enabled
Use single quotes for strings in SQL statements to avoid them failing.
PR: 279418
Approved by: portmgr (build fix blanket)
MFH: 2024Q4
(cherry picked from commit 9655fa3e957a034ffca3780d87116cbdcc3fdbc9)