corrected number of run dbs and used num-run-dbs parameter