Added ActivityLog.get_by_owner_and_range method and cleaned up some insert logic