provide old value to function when updating a connection