general: fixes for postgresql

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>