public void dbConnect(String db_connect_string,
            String db_userid,
            String db_password) {
      try {
            Class.forName("net.sourceforge.jtds.jdbc.Driver");
            Connection conn = DriverManager.getConnection(db_connect_string, db_userid, db_password);
            System.out.println("connected");
            Statement statement = conn.createStatement();
            Date dte = new Date();
            Timestamp ts = new Timestamp(dte.getTime());
            long time = ts.getTime()/1000;
            String query = "SELECT dateTimeOrigination,callingPartyNumber,finalCalledPartyNumber,dateTimeConnect,dateTimeDisconnect,destCause_value"
                    + ",origCause_value,duration FROM [CDR].[dbo].[CallDetailRecord] WHERE dateTimeOrigination > '1401802356' AND"
                    + " callingPartyNumber LIKE '2%' AND LEN(callingPartyNumber) = 4  AND finalCalledPartyNumber LIKE '2%' "
                    + " AND (LEN(finalCalledPartyNumber) = 4 or LEN(finalCalledPartyNumber) = 1) ORDER BY dateTimeOrigination DESC ";
            ResultSet rs = statement.executeQuery(query);
            while (rs.next()) {
                long lastDate = Long.valueOf(rs.getString("dateTimeOrigination"));
                System.out.println(
                        "\t" + rs.getString("dateTimeOrigination")
                        + "\t" + rs.getString("callingPartyNumber")
                        + "\t" + rs.getString("finalCalledPartyNumber")
                        + "\t" + rs.getString("dateTimeConnect")
                        + "\t" + rs.getString("dateTimeDisconnect")
                        + "\t" + rs.getString("destCause_value"));
                //dbInsert(rs.getString("SDA"), rs.getString("DirectoryNumber"));
            }
        } catch (ClassNotFoundException | SQLException e) {
            e.printStackTrace();
        }
    }