on delete set null for PaymentOrder session relation
(forward port of c0a814d8c from maintenance/0.5x branch)
add PRAGMA synchronous = OFF to SQLite
(not needed atm for :memory: but for future file-based sqlite tests)