Fully implemented retrieval of data

Fully implemented retrieval of data for Tasks and Details, with correct
sorting. Next task is to implement updating of data.