// Gets a named instance.
        static public DataManagerOption GetInstance(long campaignId, string name, bool create)
        {
            List <RainmakerData> options = DataManagerOption.FetchDataSet(("name='" + name + "' AND is_named_query=1"), null);

            if (options.Count >= 1)
            {
                return((DataManagerOption)options[0]);
            }
            else
            {
                return((create) ? DataManagerOption.CreateInstance(campaignId, 0) : null);
            }
        }
        // Gets an instance associated with a campaign and query
        static public DataManagerOption GetInstance(long campaignId, long queryId, bool create)
        {
            List <RainmakerData> options = DataManagerOption.FetchDataSet(("campaignid=" + campaignId + " AND queryid=" + queryId + " AND is_named_query=0"), null);

            if (options.Count >= 1)
            {
                return((DataManagerOption)options[0]);
            }
            else
            {
                return((create) ? DataManagerOption.CreateInstance(campaignId, queryId) : null);
            }
        }