pub fn attach( db: &Database, media_dir: &Path, attachments_config: &AttachmentsConfig, args: Value, ) -> Result<Value>