[sqlite] improve performance of sqlite generation by proper PRAGMA

Also, force WAL checkpoint at the end, otherwise the DB might be incomplete.
parent c0b775e0
Pipeline #7769 passed with stages
in 42 minutes and 33 seconds