add SQL create table and index for cdr PostgreSQL