create a DB while dumping JSON output (fixes #3)