Take out the JSON node. I suspect that the MQTT node is already outputting an object, and the JSON node is converting it to a string.
However, as @jbudd suggests, I think you can have a timestamp field in the database and tell it to automatically insert the current time when you add the record, so have a look at that too.
I too use localtime() to add a timestamp into mysql table while logging, however, if the timestamp you require is not the time of 'writing' into database, but the time the data got acquired from a flow, (if you are purposefully delaying the db write), it may make a difference. doesn't it ?
Great, that is it.
"Take out the JSON node. I suspect that the MQTT node is already outputting an object, and the JSON node is converting it to a string."