Update statistics query using nsdate.