download the results and store in db