Excellent beta! the program logic is correct but the table labels need to be corrected ie.
Block Table should be name of Block or one of the defined attribute tag eg. Door, Windows or Toilet so if Toilet there should be an attribute tag named Group such that wash basin, urinals, water closets can be grouped into one table named Toilets
There should also be header labels for Model Number, Tradename, Product and Material