You can pull data from TagoIO using Restful API:
Getting Data - TagoIO
If you want to forward from TagoIO, you will need your own API that can accept https request. That can be done in both Action and Analysis, with the analysis giving you more freedom on how to perform the requests.
In the Analysis, there is a snippet code for how to perform GET requests, but you can easily change for POST etc…
Last option is to run the analysis in external. That way you keep the analysis running in your machine and can connect directly to your database.
Running Analysis as External using Node.JS - TagoIO