Removed the date field from the avatar model. The avatars were being sorted by the date field which would mean an extra index is needed if the number of entries in the table becomes large. Instead it's more efficient to sort by the primary key. The primary key itself was modified to include an element of the timestamp in it. (this is based on the system that's followed by instagram as described in their engineering blog)