public static void editRate(Rate r){
		
		try {
			   if(conn == null || conn.isClosed()){
			    conn = DatabaseConnection.getConnection();
			   }
			  } catch (SQLException e1) {
			   // TODO Auto-generated catch block
			   e1.printStackTrace();
			  }
		
		try{
			conn.setAutoCommit(false);
			PreparedStatement stmnt = conn.prepareStatement("UPDATE Rates set description = ?, rate = ? WHERE rate_id = ?");
			
			stmnt.setString(1, r.getDescription());
			stmnt.setFloat(2, r.getRate());
			stmnt.setInt(3, r.getRateId());
			
			stmnt.execute();
			conn.commit();
			conn.setAutoCommit(true);
		
		}
		catch(SQLException e){
			System.out.println("update fail!! - " + e);
		}
		
	}