public boolean tableExists(String name) {
		
		final Connection connection = getConnection();
		ResultSet tables = null;
		
		try {
			
			if (connection == null) {
				Utilities.outputError("Could not connect to database '" + m_databaseName + "'");
				return false;
			}
			
			final DatabaseMetaData metaData = connection.getMetaData();
			tables = metaData.getTables(null, null, name, null);
			final boolean exists = tables.next();
			
			tables.close();
			connection.close();
			
			return exists;
			
		} catch (SQLException e) {
			try {
				tables.close();
				connection.close();
			} catch (SQLException ce) {
			}
			return false;
		}		
		
	}