Add connect to Galera commands that must be exclusive across a system. Wrap run command operations in a database transaction. Fix bug in Task update logic.