edited getPastTasks in EzStorage