Changed cert_db to use Certificates and log_ids.