Switch createDir to new interfaces to separate out the database access.
Merge branch '258-downloads' of github.com:materials-commons/mcfs into 258-downloads