Major change to use the db persistence instead of redis to co-ordinate the 2pc
to publish messages.