added a function to make items table if needed.
added a function to make hosts table if needed.