I have the same issue, my TCC.db is full of garbage entries from years of developing and downloading applications. It also appears that sometimes not all permissions are working. It seems like it may be an issue of versioning (IE a major application upgrade renders the application without its assigned permissions). Toggling or removing the app from the GUI does nothing.