add select_all function

I tried to create universal select function with grouping, ordering and where conditionning