merge_db function fixed digest_list taking in 5 arguments as oppose to 1 by encapsulating the 5 params into a tuple