minor fix in checking date is tzaware for last_update in basesql