Fix: Database: Save attachment stubs on doc update

If we don't save the _attachments on a doc update,
they go away. So, let's save them.