Add environment variable and script for PostgreSQL database.