Update config with env vars and install postgres lib