Problems getting CDR since Asterisk upgrade

Hello, I installed Asterisk 11.20.0 in December and noticed today I am not getting any CDR at all. I have read lots this afternoon and spent several hours on google, cdr show status says it is enabled, module show like mysql shows 0 modules loaded. module load givesUnable to load module

It was working under 11.16.0 which was the system I upgraded from. My FreePBX is and I am running on a Raspberry Pi. Can anyone give me suggestions where to look? I tried meddling with permissions on myPHP earlier and managed to lock myself out so after a full image restore I am being extra careful!

Thanks :slightly_smiling: