Implemented Sync from Online to Local DB