moved sql generation of dataview into the object itself