mysql log parser (with percona slow query log format supper) (mostly stolen from Oracle's Mysql utilities)