Database data to PDF output