[FEATURE] add option to dump sql to a file

when running the script in TYPO3 6.2 it might complain
about missing cache tables. This option prevents those error
messages from showing up in the output.