Addinf SyncHandler in connection class