Fix PostgreSQL database restoration problem (#4217)

Use psql instead of pg_restore to restore SQL dump file.