Use managed connection pooling, use a query builder, and other cleanup
I primarily wanted to contribute the "Use managed connection pooling" and "Use query builder" commits and ended up cleaning up other things along the way.
How to register an account on GitLab. To prevent spam, new accounts are locked until approved by an admin or the approver bot. You can also file an unlock request to expedite access.
Support: mw:GitLab, how to host a project on GitLab, #wikimedia-gitlab on libera.chat, #GitLab on Phabricator.
I primarily wanted to contribute the "Use managed connection pooling" and "Use query builder" commits and ended up cleaning up other things along the way.