public void curReservations() {
        cur_reservations.removeAll(cur_reservations);
        try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch (ClassNotFoundException e) {
            System.out.println("Where is your MySQL JDBC Driver?");
            e.printStackTrace();

        }
        PreparedStatement ps = null;
        Connection con = null;
        ResultSet rs;
        try {

            con = DriverManager.getConnection("jdbc:mysql://mysql2.cs.stonybrook.edu:3306/mlavina", "mlavina", "108262940");
            if (con != null) {
                con.setAutoCommit(false);
                try {
                    String sql = "SELECT * FROM Reservation R \n"
                            + "WHERE EXISTS ( \n"
                            + " SELECT * FROM Includes I, Leg L \n"
                            + " WHERE R.ResrNo = I.ResrNo AND I.AirlineID = L.AirlineID \n"
                            + " AND I.FlightNo = L.FlightNo AND L.DepTime >= NOW()) \n"
                            + "AND R.AccountNo = ?";
                    ps = con.prepareStatement(sql);
                    ps.setInt(1, accountNo);
                    ps.execute();
                    rs = ps.getResultSet();
                    while (rs.next()) {
                        cur_reservations.add(new TableReservation(rs.getInt("ResrNo"), rs.getDate("ResrDate"), rs.getDouble("BookingFee"), rs.getDouble("TotalFare"), rs.getInt("RepSSN")));
                    }
                    con.commit();
                } catch (Exception e) {
                    con.rollback();
                }
            }

        } catch (Exception e) {
            System.out.println(e);
        } finally {
            try {
                con.setAutoCommit(true);
                con.close();
                ps.close();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }