Modularize the `dbapi` module while retaining the references No one likes a file that is more than 1000 lines long