Configure automatic reconnect

to mitigate disconnect errors when using zmaudit.pl use automatic reconnect.

---

i've come across this particular error when switching from mysql to mariadb.
still someone should check if this has negative impact somewhere (especially when locks or transactions are used in the perl scripts somewhere)