Database: replace the raw 'int64' with a 'Time.t' (= Generation.t)

This means that
- if you read the type, you realise this isn't just any old int64
- we are closer to making it fully abstract

Signed-off-by: David Scott <dave.scott@eu.citrix.com>