add methods for pulling actioned messages from the db

these support ordering by target message id