rearranged functions. Added scan id by scan id querying
END OF DAY 4/15/2013