Perhaps relevant (and well-timed):
https://forum.inductiveautomation.com/t/8-3-database-connections-configuration-as-code/117318/3?u=chris_bingham