Video Wright agrees to Mets' richest contract