Added 'identifier' field to Notifications.

Used to filter out Notifications in a portable way (for PGSQL support).
Added optional support for PGSQL

[Task #5733140618332]