How to view cdr reports from remote database (specially for cdr data)?

i am trying to use remote database for CDR data , keeping asterisk database in localhost. I could insert CDR data to db, but FreePbx not displaying it in CDR reports GUI. is there anything to change in amportal.conf ? or should i edit /var/www/html/admin/modules/cdr/page.cdr.php ?