change dictionary with connection parameters