Add tracking of the number of cores to db