public String getSDA(String sda) {
        try {
            //System.err.println("DBThread Runs");
            Class.forName("com.mysql.jdbc.Driver");
            connect = DriverManager.getConnection("jdbc:mysql://localhost/cdr_data?user=root&password=root");
            preparedStatement = connect.prepareStatement("select DirectoryNumber from dn_pattern WHERE SDA =? ");
            preparedStatement.setString(1, sda);
            ResultSet rs = preparedStatement.executeQuery();
            while (rs.next()) {
                SDA = rs.getString("DirectoryNumber");
            }
        } catch (SQLException e) {
            Logger.getLogger(ConcurrentDataInsertTest.class.getName()).log(Level.SEVERE, null, e);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(DBInsert.class.getName()).log(Level.SEVERE, null, ex);
        }
        return SDA;
    }