Fixed numCPUtoFork and if no secrets in db, use a default just for now