fixes issue with registry not removing entries from db upon remove call