The district attorney is the representative of the state before the grand jury and is its legal advisor. He shall be notified of and has the right to be present at all sessions of the grand jury, except while it is deliberating and voting. He shall examine witnesses before the grand jury.