@Dee I would recommend looking at this post Steven made yesterday:
Specifically the persistToDB function. You could use that same function, and just replace DB with OnlineDB. I would however suggest you don’t use OnlineDB and rather use DB, this will be more robust, as it will sync back to the cloud DB when you have connectivity and wont require an immediate internet connection.