adding cat index lookup and cat name lookup, commenting out clear db