@Florian_May I think you mention my first tests but since then my PotgreSQL functions "simply" transform API json results to database tables.
Maybe this topic ciuld helo : Can you still send data from old versions of forms to ODK central - #4 by mathieubossaert