DB IDO: Fix the way notification_id is handled.

Fixes #5103
Fixes #5265
Documentation: Add IDO PostgreSQL setup.

Fixes #5574
DB IDO: Implement notification object insert id cache (WIP).

Refs #5103