Please check your log files for errors after changing data base as it iseems like you data base is not prepared for jbpm and task server, following an extract of you server log:
Caused by: org.postgresql.util.PSQLException: ERROR: relation "task" does not exist
Caused by: org.postgresql.util.PSQLException: FATAL: database "jbpm5" does not exist