trying shot at deleting connections when deleting a document, and properly pulling links when deleting them.