database connectivity & environment variables