updated datebase with retriveType, retriceAID and delete methods