sql: align_timestamp() & counters/gauges indexes