Add unread message count, reply script, and ORDER BY date