add Cache DAO
fix bugs; add transaction support
add tnx support; need review and test