Some interesting options would open up if your NewDB method took an interface that adheres to sql.DB.