added remaining stored queries requried from CSD profile.  Pulled lookup of stored queries into seperate functionality.  This has not been bug-tested