Add or modify a connection