Refactored out DAO but a bug with childviewcontroller after you delete