[BUGFIX] do not delete unliked, but referenced records

this commit fixes #52