* fixed bug where due time cursor getting too many tasks
* findNextAlarm now checks for slow db ops
[testing] fixed tests