Using Google Apps Script to sync data and automate workflows