added CDR generator class and replaced apache db pool with simple db connection