Modified the message table in the database. Removed some unnecessary complications.