Update Connection Function