Add timestamp query for notifications