print certificates with database