Improve concurrency by handling sqlite BUSY errors, using proper transaction wrappers for convenience.