Keep track of what type of message we're inserting into the database.