SCALARIZR-1457 refactored postgres cookbook