How to Insert Value to PostgreSQL over Node Red

Putting the query into msg.topic does not seem right to me. Can you confirm that this is correct?

Also you might want to use a different node for PostgreSQL integration.