(3)???The principal duties of the general counsel of the district shall be to appear for the district and prosecute or defend all actions or proceedings in which the district is interested or a party, to prepare and draft resolutions, ordinances, contracts and other instruments when and as required by the board and to render to the board and to any officer of the district counsel, advice and opini