Creating automatic PDFs with PHP, MySQL