public void close(){
		try{
			if (result != null && !result.isClosed()){
				result.close();
				result = null;
			}
			if (statement != null && !statement.isClosed()){
				statement.close();
				statement = null;
			}
			if (connection != null && !connection.isClosed()){
				connection.close();
				connection = null;
			}
		} catch(Exception exception){
			JOptionPane.showMessageDialog(null, exception.toString(), "Error", JOptionPane.ERROR_MESSAGE);
		}
	}