Adding unique index on ids.
User user ID instead of login token in URI segments.