messages table schema defined