Wrap generate_d_file in application context
Wrap generate_d_file in application context

This will tie the database session to the current thread rather than accessing
a shared static var

fedspendingtransparency/data-act-broker-backend,fedspendingtransparency/data-act-broker-backend,chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend,chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend