Transactions for main sync operations