Fixed update method in DAO. Tests are still failed.