Bug fix; needed to create output dir before creating sqlite db file