Commit cf09f6a2 authored by ale's avatar ale

Refactor database layer

Various improvements related to concurrency:

* set appropriate sqlite options on the connection uri
* pass a Context to the internal methods
* use transaction wrappers that retry BUSY errors (using the above
  Context)
parent 8fcceae1
Pipeline #7153 passed with stages
in 2 minutes and 3 seconds