Rather than utilizing the current poor dbconnector implementation for set returning functions it would be better to fix the interface.