How to fix Asterisk to read CDR from MySQL and not from master.csv

Since last upgrade of trixbox, Asterisk has lost info about MySQL CDR and has gone to master.csv. So I can’t access my CDR info anymore in the Reports panel of FreePBX or in ARI.

Where the code needs to be fixed. Is it to be fixed in some asterisk file, or somewhere else?