Added S# repaired, WOs Open. Fixed a bug in inventory shortage and added SQL queries