created and migrated messages table