modules/pua: db_mode=2 send_publish fixes

- plus small debug message edits
(cherry picked from commit 6822ff45e931ad3e93b22ebf7d1beb350bf27e70)