The CSV format for the MS2 database is very custom to ipaPy2 and nomally MS2 spectra are stored in MSP or MGF files. By implementing functionality to read those files and get the same information from them, the tool would become significantly more compatible with other existing software.
Matchms could be used to read the MSP file and to get the information from it. We would need an abstraction over the MS2Database format which would allows getting the data from either a csv or an msp.