added parameters for degree of multiprocessing re: the db process