Pass S7 variable to Mysql query

Hi Colin,
thanks a lot for your reply.
I'll surely have a look into the suggested Essentials.
In the meantime this is the debug from the S7 Node

23/2/2021, 15:04:51node: 3f5809af.a2d146
metri : msg.payload : number
7654

I'm passing the wrong value to the function?
In the meantime I'm going to "EssentialsMe"...

Thanks!
Michele