So the debug you added gives a number? And I'm guessing you are trying to insert one value and a timestamp to the database?
so most of teh example is a copy and paste
msg.payload={ "action": "I", "query": "insert into table
<--- you want to insert
(Name, LastName, Age)
<-- the column names
VALUES ('Jane', 'Doe', '25')" };
<-- the values
But as in your case the value is coming from the message you will need to reference msg.payload. see this thread Need Help to Insert, Update and Delete Data from Node-RED Dashboard Inputs to the Database - #34 by tarihoran20