Introduced abstraction for a queue table to handle moving poison messages to error queue