Updated table creation scripts.

Now it's a single table with the added Json column (to contain children),
as well as the primary key optimization. Also included indexes.
All child profiler timings are now stored as JSON.