Updated SQL script with availability status codes and product formats.