Moved database code from IFSpectrum, BeamEff, and DataPlotter classes to know classes