Default the attachments path to inside the db path, and use the path and...

... org to generate a unique db path if unspecified