public void UpdateYahooDB() {
        //TODO: loop through all stocks, Query from finviz database
        MongoDB findb = null;
        try {
            findb = new MongoDB();
        } catch (UnknownHostException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
        DBCollection FinvizRealtime = findb.GetDBConn().getCollection("FinvizRealtime");
        DBCursor cursor = FinvizRealtime.find(new BasicDBObject(/*"_id",new BasicDBObject("$lt","BF-B")*/),new BasicDBObject("_id",true))
                .sort(new BasicDBObject("_id",1));
        while(cursor.hasNext()){
            String Ticker = (String) cursor.next().get("_id");
            try {
                InputStream YahooURLReader = new URL("http://ichart.finance.yahoo.com/table.csv?s="+Ticker).openStream();
                List<String> YahooRec = new LinkedList<String>();
                YahooRec = GetRec(YahooURLReader);
                MongoDB DBConn = new MongoDB();
                DBConn.InsertYahooData(YahooRec,Ticker);
                System.out.println("Updating for "+Ticker);
            } catch (MalformedURLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            } catch (UnknownHostException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            } catch (IOException e) {
                System.out.println("Ticker: "+Ticker +" is not available on Yahoo");
                //e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }
        }

    }