Moussa Niakhate and Pierre Kunde were on target as Mainz gave their survival hopes a shot in the arm with victory at Eintracht Frankfurt.