some progress on data retrieval. Simple queries without joins.