Update database environment variables