Fix problem creating database in 'run' subcommand of rulecount.py.