Update only date if greater

This is to solve a race condition in parallelization when older reads
are pushed after newer reads
Merge pull request #3 from gisce/update_only_if_greater

Update only date if greater