catodb - updated with proper raise exception logic
task engine - reconnect and retry query or exec to mysql if connection is severed, fixes #258