How would you architect a system to sync local workout data back to Tonal’s central database when the device has intermittent internet connectivity?