added local id tracking
removing now works perfectly with categories and expenses