public static ArrayList<Rental> getRentalById(int rentalId){
		
		try {
			   if(conn == null || conn.isClosed()){
			    conn = DatabaseConnection.getConnection();
			   }
			  } catch (SQLException e1) {
			   // TODO Auto-generated catch block
			   e1.printStackTrace();
			  }
		
		ArrayList<Rental> rentalList = new ArrayList<Rental>();

		try {
			Statement stmnt = conn.createStatement();
			String sql = "SELECT * FROM Rentals WHERE rental_id = " + rentalId;
			ResultSet res = stmnt.executeQuery(sql);

			while(res.next()) {
				rental = new Rental(res.getInt("rental_id"),res.getInt("product_id"),res.getString("type"));
				rentalList.add(rental);
			}

		}
		catch(SQLException e) {
			System.out.println("PROBLEM");
			e.printStackTrace();
			

		}
		
		
		return rentalList;
		
	}