Wmfdb is a library and set of utilities for database automation. It's (as of 2021-11) in very early development.
Code: https://gitlab.wikimedia.org/repos/sre/wmfdb
Phab: https://phabricator.wikimedia.org/project/view/5611/