dao refactor w API. just a check point as its not really working fully.

This compiles but I did not fully test it al out. At least you can see where its headed.