Export collected data to relational database

I have collected data with a Form that has a “Repeat group” in it, it’s like a one-many relationship. Now there is a new requeriment to export the data to a relational database (any), how can I do this properly? and without having to prepare manually a table with all the fields that the form has, is there an automated way to do this?

@javib94, FYR:

As I understand, REST services send data when is created, the problem is that I’m not receiving answers any more, I need to export saved data to relational database.

@javib94, maybe try this approach that has been discussed previously: