adding environments and pg access