pub async fn write_tx(
    lock: &mut OwnedMutexGuard<SqliteConnection>
) -> Result<Transaction<'_>, Error>