public String addMessage() throws Exception {
		System.out.println("userName is " + userName);
		Connection conn = null;
		int addCount = 0;
		Statement stmt = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
			conn = DriverManager.getConnection(url, user, psw);
			if (!conn.isClosed())
				System.out.println("Success connecting to the Database!");
			else
				System.out.println("Fail connecting to the Database!");
			stmt = conn.createStatement();
			addCount = stmt
					.executeUpdate("insert into message(user_name,message)"
							+ "values('"
							+ userName
							+ "','"
							+ message
							+ "')");
			if (addCount != 0) {
				showMessage();
				return SUCCESS;
			} else {
				return ERROR;
			}
		} catch (Exception e) {
			System.out.print("connection error!");
			e.printStackTrace();
			return ERROR;
		}
	}