"Parse" SQL dump into statements

It seems the few SQL parsers available for PHP are not supposed to read big dumps.
This one is a very simplistic "stream" parser and works for our dumps but probably
not for yours :-)