setup with pg and other configurations