Use transaction managment instead of scary data-corrupting PRAGMAs.