Running Query and Checking for Existence : with comments