Adding a reconnect for a lost mysql connection