use environment variable for linking pg