Using SQL to count the done tasks. Improves performance.
Using SQL to count the done tasks. Improves performance.

ethan-nelson/osm-tasking-manager2,baditaflorin/osm-tasking-manager2,KaiDalgleish/osm-tasking-manager2,KaiDalgleish/osm-tasking-manager2,jarmokivekas/osm-tasking-manager2,stefanb/osm-tasking-manager2,stefanb/osm-tasking-manager2,baditaflorin/osm-tasking-manager2,ethan-nelson/osm-tasking-manager2,baditaflorin/osm-tasking-manager2,jarmokivekas/osm-tasking-manager2,ethan-nelson/osm-tasking-manager2,jarmokivekas/osm-tasking-manager2,stefanb/osm-tasking-manager2,stefanb/osm-tasking-manager2,baditaflorin/osm-tasking-manager2,ethan-nelson/osm-tasking-manager2,jarmokivekas/osm-tasking-manager2,KaiDalgleish/osm-tasking-manager2,KaiDalgleish/osm-tasking-manager2