Fixing critical database errors that could prevent messages from being sent
Fixing minor errors