Integrate content provider with new task activity

Partly integrate content provider with new task activity, throw away
direct database handling from all activities.