Document update handler adding a document link.
Expose api on database connection to schedule a document to be saved
together with other document and added as its link.
Rename the testcase since it's been a long time since we are not
using paisley.