added sql code to create table for CDR logging