create index messages_territory_id_idx on messages (territory, id);
