add id as secondary ordering column for messages