Use LiveCycle Designer to generate your PDF template.
To get the data from the database you can either
1 - use Designer to directly connect the form to the database
2 - use Workbench to make JDBC call to the database and use Forms to merge the form template with the data