fixing messages table