To set up jbpm 5.4 to use Postgresql, i followed the steps (with respect to postgresql) given in https://community.jboss.org/wiki/SetUpJBPM54FinalInstallerToUseMSSQLServer2008UsingJTDS.
Db tables were created both in jbpm5 and task databases.
Best Regards,
Chary