Database event logger: qa-fix for postgres  - try 2