SECOND AMENDMENT TO THE MID PENN BANK AMENDED AND RESTATED DIRECTOR DEFERRED FEE AGREEMENT DATED JANUARY 1, 2005 AND AMENDED JUNE 28, 2007 FOR ALAN DAKEY