Add log_file argument to cdb()