Update the last updated time before queyring for new activities,
otherwise activities can be missed.
Make sure activities are processed in chronological order.