public boolean tableExists(String name) {
		
		try {
			final Connection connection = getConnection();
			if (connection == null) {
				Utilities.outputError("Could not connect to database '" + m_databaseName + "' using '" + m_options.username + "'@'" + m_options.host + ":" + m_options.port + "' using password '" + (m_options.password.length() == 0 ? "NO" : "YES") + "'");
				return false;
			}
			
			final DatabaseMetaData metaData = connection.getMetaData();
			final ResultSet tables = metaData.getTables(null, null, name, null);
			final boolean exists = tables.next();
			
			tables.close();
			connection.close();
			
			return exists;
			
		} catch (SQLException e) {
			return false;
		}		
		
	}