dec refcount on refdb instead of always freeing

Sigh.