Reimplemented table creation on enable

Rename materialEvent to addMaterial
Remove debugTimer functionality
Remove old SQL update method
Clean up how enum table rows are inserted