add dao object && fix the framework