/// <summary>
        /// Helper function for query functions
        /// </summary>
        /// <param name="querySpec"></param>
        /// <returns></returns>
        private string RunQuery(QuerySpec querySpec)
        {
            var cursor = new StoreCursor(this, querySpec);

            _cursors.Add(cursor.CursorId, cursor);

            var data = cursor.GetCursorData(this);

            return(data);
        }
        /// <summary>
        /// Helper function for query functions
        /// </summary>
        /// <param name="querySpec"></param>
        /// <returns></returns>
        private string RunQuery(QuerySpec querySpec)
        {
            var cursor = new StoreCursor(this, querySpec);

            _cursors.Add(cursor.CursorId, cursor);

            var data = cursor.GetCursorData(this);
            return data;
        }