solved DAO bugs and access