updated select functionality to return models instead of values if a value is either ommitted or equal to * in the select statement