ODBC: Sync last item notifications with mod_pubsub

A while back, mod_pubsub was modified to address EJAB-1456.  The change
was only partly applied to mod_pubsub_odbc; this commit adds the
remaining part.