Switch postgresql cookbook and edit attribs