Fix bug that double increment Task ID

This commit fixes the double increment Task ID bug.

It also edits ArrayList<String> to a more general class List<String> in
LocalStorage.