public final void writeToDB(final boolean bDisband) {
        try {
            Connection con = DatabaseConnection.getConnection();
            if (!bDisband) {
                if (changed) {
                    try (PreparedStatement ps = con.prepareStatement("UPDATE families SET notice = ? WHERE familyid = ?")) {
                        ps.setString(1, notice);
                        ps.setInt(2, id);
                        ps.execute();
                    }
                }
                changed = false;
            } else {
                //members is less than 2, this shall be executed
                if (leadername == null || members.size() < 2) {
                    broadcast(null, -1, FCOp.DISBAND, null);
                }
                try (PreparedStatement ps = con.prepareStatement("DELETE FROM families WHERE familyid = ?")) {
                    ps.setInt(1, id);
                    ps.execute();
                }
            }
        } catch (SQLException se) {
            System.err.println("Error saving family to SQL");
        }
    }