code: def _find_certificate_metadata(self, uid=None):
          
          certificate = self.db.certificates.find_one({'uid': uid})
          return certificate
docs: Find certificate by certificate uid
          :param uid: certificate uid
          :return: certificate from certificates collection