Edit references

refdb has no built-in reference editor. The strategy to edit an existing reference is as follows: