fixed creation of HARDWARE_ tables