Update core and query tests to use new schema
Fix a bug preventing insertion of all but the first row
Update the query code to iterate through intervals & segments
Remove duplicated function from the utils package
Make the benchmarks work with the new schema
Patch up migrator and tests to work with the interval storage
Patch up the web server to use interval storage