NXP-11030: fix directory autogenerated id for PostgreSQL