CDR module will not install

Hi All,
I have just installed FreePBX 12 on the latest Ubuntu, I have successfully installed all the modules I want with the exception of CDR module.

When I install the following error comes up.

FATAL ERROR
SQLSTATE[42000] [1049] Unknown database ‘asteriskcdrdb’

SQLSTATE[42000] [1049] Unknown database ‘asteriskcdrdb’

Trace Back

/var/www/html/admin/libraries/BMO/Database.class.php:64 PDO->__construct()
[0]: mysql:host=localhost;dbname=asteriskcdrdb
[1]: asteriskuser
[2]: freepbxmysql**

/var/www/html/admin/modules/cdr/Cdr.class.php:35 Database->__construct()
[0]: mysql:host=localhost;dbname=asteriskcdrdb
[1]: asteriskuser
[2]: freepbxmysql**

/var/www/html/admin/libraries/BMO/Self_Helper.class.php:116 Cdr->__construct()
[0]:

/var/www/html/admin/libraries/BMO/Self_Helper.class.php:60 Self_Helper->autoLoad()
[0]: Cdr

/var/www/html/admin/libraries/modulefunctions.class.php:2216 Self_Helper->injectClass()
[0]: Cdr
[1]: /var/www/html/admin/modules/cdr/Cdr.class.php

/var/www/html/admin/libraries/modulefunctions.class.php:1799 module_functions->_runscripts()
[0]: cdr
[1]: install
[2]:

/var/www/html/admin/page.modules.php:213 module_functions->install()
[0]: cdr
[1]: 1

/var/www/html/admin/config.php:341 include()
[0]: /var/www/html/admin/page.modules.php

Can anyone tell me what would cause this error?

Thanks

How did you install. Please walk me through the steps you followed.

Sorry to trouble you, I have review the steps and in doing so found what I had missed.