public static void main(String[] args) {
        try {
            Date dt = new Date();
            DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
            
            //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("insert into  timetable (timeTablecol) values (TIMESTAMP(?))");
            
            String st = df.format(dt).substring(0, 11) + "14:05:22.650";
            System.err.println(st);
            preparedStatement.setString(1, df.format(dt).substring(0, 11) + "14:20:22.650");
            preparedStatement.executeUpdate();

        } 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);
        }

    }