add option to generate SQL files instead of running directly.