Implemented possibility to set MySQL wait_timeout using mysql_wait confi...

Implemented possibility to set MySQL wait_timeout using mysql_wait configuration variable, eg: 

output database: log, mysql, user=xxxx password=xxxx dbname=xxxx host=xxxxx sensor_name=xxxxx mysql_wait=97200