Inserts arbitrary data about messages

I don't yet have a full mesage parser, but this does insert all the
"important" data into the MH__messages table and (hopefully, at least)
insures that there's no race conditions.