updating makefile with permissions changes and fixing pgsql hopefully