public ArrayList<Guest> searchForGuestDB(String status, Connection con, String... names) {
        Guest guest = null;
        String SQLString = "";
        ArrayList<Guest> guestList = new ArrayList<>();
        if (status.equals("both")) {
            SQLString = "SELECT * "
                    + "FROM guests "
                    + "WHERE UPPER(first_name) LIKE UPPER(?) AND UPPER(last_name) LIKE UPPER(?)";
        }
        if (status.equals("firstName")) {
            SQLString = "SELECT * "
                    + "FROM guests "
                    + "WHERE UPPER(first_name) LIKE UPPER(?)";
        }
        if (status.equals("lastName")) {
            SQLString = "SELECT * "
                    + "FROM guests "
                    + "WHERE UPPER(last_name) LIKE UPPER(?)";
        }
        PreparedStatement statement = null;
        try {
            statement = con.prepareStatement(SQLString);
            if (status.equals("both")) {
                statement.setString(1, "%" + names[0] + "%");       // Her indsættes "%navn%" på "?", for at opnå den ønskede søgning "WHERE first_name LIKE '%navn%'".
                statement.setString(2, "%" + names[1] + "%");
            }
            else {
                statement.setString(1, "%" + names[0] + "%");
            }
            ResultSet rs = statement.executeQuery();
            while (rs.next()) {
                guest = new Guest(rs);
                guestList.add(guest);
            }
        }
        catch (SQLException e) {
            System.out.println("Fail in GuestMapper.searchForGuestDB()");
            System.out.println(e.getMessage());
        }
        finally
        {
            try {
                statement.close();
            }
            catch (SQLException e) {
                System.out.println("Fail in GuestMapper.searchForGuestDB()");
                System.out.println(e.getMessage());
            }
        }
        return guestList;
    }