made alterations to the sql command in COGCC_Download