A few tweaks to SQL, in particular turning on WAL
Rename noRetry -> noRefresh, also introduce a helper method that never refreshes