Modified GenerateTable to add the method insert