Fix db reference in pg init module