I need to steadily insert values into a database. I've tried with this code:

```
var mysql = require("mysql");
const random = require("random");

var con = mysql.createConnection({
  host: "xxx",
  user: "xxx",
  password: "xxx",
  database: "xxx"
});

con.connect(function(err) {
  while (true) {
    if (err) throw err;
    val1_ = random.int((min = 0), (max = 100));
    val2_ = random.int((min = 0), (max = 100));
    val3_ = random.int((min = 0), (max = 100));
    val4_ = random.int((min = 0), (max = 100));
    var sql =
      "INSERT INTO Table (val1, val2, val3, val4)VALUES (" +
      val1_ +
      "," +
      val2_ +
      "," +
      val3_ +
      "," +
      val4_ +
      ")";
    con.query(sql, function(err, result) {
      if (err) throw err;
    });
  }
});

```

but I get this **Error: `Cannot enqueue Handshake after already enqueuing a Handshake.`** I know this is not probably the way to do this task, it's just to make you understand what I want to do. How can I tackle this problem?