Refine message queue table implementation.