This is the concept:
- link-in node. Make sure to give it a proper name (eg. db)
- link-out node. Set the mode to: 'return to calling link node'
- link-call node. select the name you gave to 1.
Now you can pass a query and call the db directly in your flows by only using the link-call node.