Adds message_types and field_types to database.