environment vars and postgres script