 					<th>References</th>
 				</tr>
 				<cfloop query="tcols">
-					<cfquery name="trefs" dbtype="query">
-						select * from trels where o_column_name = '#column_name#'
-					</cfquery>
-					<cfquery name="trefsback" dbtype="query">
-						select * from trels where r_table_name='#tbl#' and r_column_name = '#column_name#'
-					</cfquery>
+
 
 					<tr>
 						<td>#column_name#</td>

								<tr>
									<th>ConstraintName</th>
									<th>OriginatesFrom</th>
									<th>References</th>
								</tr>
								<cfloop query="trefs">
									<tr>
										<td>
											#C_CONSTRAINT_NAME#

										<td>
											#r_table_name#.#r_column_name#
										</td>
										<td>#r_constraint_name#</td>
									</tr>
								</cfloop>
							</table>
						</td>
					</tr>
				</cfloop>
			</table>
		</cfif>

		<!----
