diff --git a/system/database/DB_export.php b/system/database/DB_export.php
index 195510d..1e94c6c 100644
--- a/system/database/DB_export.php
+++ b/system/database/DB_export.php
@@ -23,19 +23,51 @@
  * @link		http://www.codeigniter.com/user_guide/database/
  */
 class CI_DB_export {
-	
+
+
+	function CI_DB_export()
+	{
+		log_message('debug', "Database Export Class Initialized");
+	}
+
 	/**
-	 * Some function
+	 * Generate CVS
 	 *
 	 * @access	public
 	 * @return	integer
 	 */
-	function something()
+	function generate_cvs($query, $delim = "\t", $newline = "\n")
 	{
+		if ( ! is_object($query) OR ! method_exists($query, 'field_names'))
+		{
+			show_error('You must submit a valid result object');
+		}	
+	
+		$out = '';
+		foreach ($query->field_names() as $name)
+		{
+			$out .= $name.$delim;
+		}
+
+		$out .= $newline;
+		
+		foreach ($query->result_array() as $row)
+		{
+			foreach ($row as $item)
+			{
+				$out .= $item.$delim;			
+			}
+			
+			$out .= $newline;
+		}
+		
+
+		return $out;
 	}
 	
 	// --------------------------------------------------------------------
 
+
 }
 
 ?>
\ No newline at end of file
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index f98448a..41941ae 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -31,6 +31,8 @@
 		// Assign the main database object to $this->db
 		$obj =& get_instance();
 		$this->db =& $obj->db;
+		
+		log_message('debug', "Database Utility Class Initialized");
 	}
 
 	// --------------------------------------------------------------------