 			// rename older to otherVersions
 
 			if(queryColumnExists(data.extensions,"older") || !queryColumnExists(data.extensions,"otherVersions")) {
-				data.extensions.addColumn("otherVersions",data.extensions.columnData('older'));
-				data.extensions.deleteColumn("older");
+				queryAddColumn(data.extensions,"otherVersions",data.extensions.columnData('older'));
+				queryDeleteColumn(data.extensions,"older");
 				//QuerySetColumn(data.extensions,"older","otherVersions");
 			}
 
 			// add missing columns
 			loop list="#data.extensions.columnlist()#" item="local.k" {
-                if(!qry.ColumnExists(k)) qry.addColumn(k,[]);
+                if(!qry.ColumnExists(k)) queryAddColumn(qry,k,[]);
             }
 
 			// add Extensions data

			    returnVariable="local.locals" ;
			// add column if necessary
			loop list="#locals.columnlist()#" item="local.k" {
                if(!qry.columnExists(k)) qry.addColumn(k,[]);
            }
            qry.addColumn('otherVersions',[]);

			loop query="#locals#" {
				var row=qry.addrow();
				qry.setCell("provider","local",row);
				loop list="#locals.columnlist()#" item="local.k" {
            		qry.setCell(k,locals[k],row);

					arrayAppend(ov,older);
					qry.otherVersions[row]=ov;
				}
				queryDeleteRow(qry,row+1);
			}


