[#605] Fix datastore query

* If no date is passed in, just do not filter by date