Configure database connection via environment variables.