Use consistent database connections and prove write contention before checking event-loop responsiveness. Keep cleanup deterministic when an assertion fails. Refs #520
Integrate the current development branch, preserve the album comment fixes, and align the changes with repository formatting and dependency tooling.