CDR migration script for Postgres. Migrates CDRs from the old cdrs_primary, rated_cdrs, cdrs_extra and cost_details tables into the single cdrs table.