db_update script is failing as environment is not set