folder setup, pg connection