remove obsolete characters.status field from database queries
remove remnant _amask checking
remove obsolete UpdateMessagesCount
remove obsolete total_time references