Add a check to make sure the /var/db/pcdm directory exists, and create it if not.