Made the thables archiving explicitly skip the rest of the actions if there is nothing to process in database.