Added creation of messages table.