[z1794] Always use _unsigned_ BIGINT fields in DB for time store

Also some other BIGINT fields fixed.

(based on commit d52a9c0)

(based on commit [s1350] - 07e5698)