implemented datastore query for cron job
implemented datastore query for cron job