AMENDMENT NO. 2 TO AMENDED AND RESTATED MANAGED CARE AGREEMENT