ph241: updated data extraction query

you guys can ignore, this is for my other class project