[Server] Updated unread_count query