Cdr bash script not working after migrating to freepbx distro

The database stuff uses PDO which is 12+. With 13 on the verge of stable there is no good reasom to be using 2.11 still