Adde group functionality to DataModel. Some improvements for distinct as well. Filtering might not work now -> under investigating..