add a cookbook example of switching dao source