Databases often don't enter into it. A lot of mainframe COBOL work is batch-oriented. It basically just streams through a series of flat files.
Source: I worked for a bank in my youth, which involved writing COBOL.
Source: I worked for a bank in my youth, which involved writing COBOL.