public static ArrayList<Rate> getAllRates(){
		
		try {
			   if(conn == null || conn.isClosed()){
			    conn = DatabaseConnection.getConnection();
			   }
			  } catch (SQLException e1) {
			   // TODO Auto-generated catch block
			   e1.printStackTrace();
			  }
		
		ArrayList<Rate> rateList = new ArrayList<Rate>();
		try {
			Statement stmnt = conn.createStatement();
			String sql = "SELECT * FROM Rates";
			ResultSet res = stmnt.executeQuery(sql);

			while(res.next()) {
				rate = new Rate(res.getInt("rate_id"), res.getString("description"), res.getFloat("rate"));
				rateList.add(rate);
			}

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

		}
		
		return rateList;
			
		}