While dealing with request #41465 I thought I needed to refactor this class in order to add a new method before finding that the method I needed already existed.
I already started the conversion work so I might as well finish it especially since one method has a risk of SQL injections.