Node-red dashboard with weird behaviour

Please export your flow and attach it to a response. Make sure to read How to share code or flow json first.

also which query is that debug showing? and which table is the issue in?