def METHOD_NAME(dg):
    """
    Initial setup of the fileDB.
    """
    dg.lh5_dir_setup(create=True)
    dg.scan_daq_dir()
    dg.fileDB.sort_values(['cycle'], inplace=True)
    dg.fileDB.reset_index(drop=True, inplace=True)
    dg.fileDB = dg.fileDB.apply(get_cyc_info, args=[dg], axis=1)
    dg.get_lh5_cols()
    for col in ['run', 'cycle']:
        dg.fileDB[col] = pd.to_numeric(dg.fileDB[col])
    # dg.fileDB['run'] = dg.fileDB['run'].astype(int)
    print(dg.fileDB[['run', 'cycle', 'unique_key', 'daq_file']].to_string())
    dg.save_df(dg.config['fileDB'])
    print('Wrote output file.')