public static long getLastUpdate(){
        Connection con = DBase.dbConnection();
        PreparedStatement pst;
        long t=0;
        Calendar c = Calendar.getInstance();
        try{
          String query = "Select Distinct RetreiveDate FROM \"ME\".USD";
          pst = con.prepareStatement(query);
         
          ResultSet rs = pst.executeQuery();
          
              while(rs.next()){
         
          c.setTime(rs.getTimestamp(1));
          
          
          t = c.getTimeInMillis();
              }
          pst.close();
          con.close();
        }catch(SQLException e){System.err.println(e);}
        
        return t;
    }