Completed functionality for update and insert

Wrote functions for performing sync - did not test yet.
Wrote functions to fetch objects based on sync flag.
Added toast on save transformer.