[v6r9] AccountingDB: changes to speed up queries

In "bucket" tables:

- Dropped single indexes;
- UniqueConstraint index starts with startTime
- changed GROUP BY part of the query