Where to place DB connections within plumber APIs?

It is the solution we're currently testing. Not sure how many connections you're expecting, but it seems to be working for small needs (5-10 connections at most).