Added table creation and population functionality