Some fixes to borodb_delete() (still untested).