Modified checks to avoid creating spam entries in the activity database.
Added empty channel pruning to activity pruning.