Made SyncActivity check for internet connection before attempting sync
Made SyncActivity clear the previously left tables before attempting sync