CREATE TABLE messages
   (
     message_url             TEXT,
     thread_url              TEXT,
     thread_id               TEXT,
     message_id              TEXT,
     from_header             TEXT,
     to_header               TEXT,
     cc_header               TEXT,
     subject_header          TEXT,
     date_header             TEXT,
     date_as_date            DATE,
     reply_to_header         TEXT,
     date_of_entry           TIMESTAMP
   );


CREATE TABLE mailing_lists
   (
     name                    TEXT,
     next_message_number     INT
   );
