simplify RestDao constructor