public boolean saveMybbUser(String user) throws SQLException,
			ClassNotFoundException {
		sqlClass();
		sqlCon();
		if (!customField.isEmpty()) {
			query = "SELECT ufid FROM " + tablePref + "userfields WHERE fid"
					+ customField + "='" + user + "'";
			ResultSet rs = SELECT(query);
			if (rs.next()) {
				query = "UPDATE " + tablePref
						+ "users SET usergroup='2' WHERE uid='"
						+ rs.getInt("ufid") + "'";
				UPDATE(query);
				query = "SELECT * FROM " + tablePref + "users WHERE uid="
						+ rs.getInt("ufid") + " AND usergroup='2'";
				rs = SELECT(query);
				if (rs.next()) {
					plugin.sendInfo(ForumAA.server.getPlayer(user),
							"Your account has been activated.");
					closeCon();
					return true;

				} else {
					plugin.sendError(ForumAA.server.getPlayer(user),
							"Your account has not been activated");
					closeCon();
					return false;
				}

			} else {
				plugin.sendError(ForumAA.server.getPlayer(user),
						"Couldn't find your username");
				closeCon();
				return false;
			}
		} else {
			query = "UPDATE " + tablePref
					+ "users SET usergroup='2' WHERE username='" + user + "'";
			UPDATE(query);
			query = "SELECT * FROM " + tablePref + "users WHERE username='"
					+ user + "' AND usergroup='2'";
			ResultSet rs = SELECT(query);
			if (rs.next()) {
				plugin.sendInfo(ForumAA.server.getPlayer(user),
						"Your account has been activated.");
				closeCon();
				return true;

			} else {
				plugin.sendError(ForumAA.server.getPlayer(user),
						"Your account has not been activated");
				closeCon();
				return false;
			}
		}
	}