Added syncOnSave function to push the record to the server, and remove
the update flags from the local record