public void actionPerformed(ActionEvent e) {
				conn = null;
				
				try {
					conn = DriverManager.getConnection(url, getUsername(),
							getPassword());
					state = conn.createStatement();
					if (getUsername().toLowerCase().equals("root")) {		// TODO change "root" to your own username
						updateWithScript();
					}
					succeeded = true;
					dispose();
				} catch (Exception ex) {
					JOptionPane.showMessageDialog(LoginDialog.this,
							ex.getMessage(), "Login",
							JOptionPane.ERROR_MESSAGE);
					succeeded = false;
				}
			}