Fix sql for new database creation
Add new fields definition on pdf reports