Wheter one aggregated insert or multiple should be generated.
Execute an SQL query until it succeeds.
To ensure a consistency the time is always converted to UTC.
A prepared statement is lent to the user. The refcnt takes care of resetting the statement when the user is done with it.
RAII handling of a transaction.