Modified Metadata and data generation scripts.

Metadata database now has slightly different structure with table for
Batches extension.
Source generation scripts now generate logtime column data in ordered
and accending way with a step of 1hour.